var calculate={
    //自动加减
    autoCalculate:function(sign,inputNumber){
        let result=Number(inputNumber);
        if(sign=='-'){
            if(Number(inputNumber)>1){
                result-=Number(1);
            }
        }else if(sign=='+'){
            result+=Number(1);
        }
        return result;
    }
}
module.exports=calculate;